//
//  IOS7ViewController.m
//  PictureDemo
//
//  Created by 李红 on 14-2-20.
//  Copyright (c) 2014年 hongli. All rights reserved.
//

#import "IOS7ViewController.h"

@interface IOS7ViewController ()

@end

@implementation IOS7ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.

}

-(void)stretchableImage:(UIImageView *)img imgNormalStr:(NSString*)normalName withLeft:(NSInteger)leftCapWidth topHeight:(NSInteger)topCapHeight
{
    UIImage *firstImage = [UIImage imageNamed:normalName];
    UIImage *scarchFirstImage = [firstImage stretchableImageWithLeftCapWidth:leftCapWidth topCapHeight:topCapHeight];
    img.image = scarchFirstImage;
    
}

- (void)dealloc {
    [_backImage release];
    [super dealloc];
}
@end
